")}}if(Modernizr.mq("screen and (max-device-width:480px)")){var p=288;a(t,p)}else if(Modernizr.mq("screen and (max-device-width:1024px)")){var p=500;a(t,p)}else a(t)}if(t.hasClass("type-quote")){var u=t.find(".quote-text"),g=u.find(":first-child"),m=u.find(":last-child"),v='',b='';g.length>0&&g.is("p")?g.prepend(v):u.prepend(v),m.length>0&&/<\/[a-zA-Z]+>$/.test(u.html())?m.append(b):u.append(b)}t.addClass("loaded")}),twitterJSLoading||d()}function n(t){var i=t.find(".photo-panel"),n=i.find("img"),a=i.find(".lightbox"),o=n.parent("a");e(n).click(function(t){return t.metaKey?(window.open(e(n).parents("a").attr("href")),!1):void 0}),n.addClass("shadowed"),a.fancybox(fancyboxArgs),o.length>0&&(o.attr("href")==a.attr("href")?o.click(function(){return a.click(),!1}):(e("",{"class":"photo-link-url",href:o.attr("href"),text:"Go to Link"}).prependTo(i.find(".photo-btns")),a.length>0&&o.click(function(){return a.click(),!1})))}function a(t,i){function n(e,t){if("css"==t)var i=("100%"==e.css("width")?a:parseInt(e.css("width")))/parseInt(e.css("height"));else if("attr"==t)var i=("100%"==e.attr("width")?a:parseInt(e.attr("width")))/parseInt(e.attr("height"));return Math.floor(a/i)}if(t.find(".js-string").remove(),void 0==i)var a=contentWidth;else var a=i;var o=t.find(".media"),s=o.find("embed"),r=o.find("object"),d=o.find("iframe"),c=o.html(),l=/src="?http(s)?:\/\/(www)?.youtube(-nocookie)?.com/i.test(c),h=/src="?http:\/\/player\.vimeo\.com/i.test(c),f=o.find(".tumblr_video_container").length>0;if(l){var p=c.match(/http(s)?:\/\/(www)?.youtube(-nocookie)?.com\/([a-zA-Z0-9\/\-_])+/i)[0],u=p.match(/\/([ev]|embed)\/([a-zA-Z0-9\/\-_]+)/),g=Math.floor(.75*a),m=Math.floor(.5625*a);e.getJSON("http://gdata.youtube.com/feeds/api/videos/"+u[2]+"?v=2&alt=json-in-script&callback=?",function(e){if(null!=e.entry.media$group.yt$aspectRatio)var t=m;else var t=g;o.html('')})}else if(h)o.html('');else if(f){var v=o.find(".tumblr_video_container"),b=n(d,"attr");v.css({width:a,height:b}),d.css({width:a,height:b}),o.css({zIndex:500})}else if(d.length>0){var b=n(d,"attr");d.attr("width",a).attr("height",b).css("width",a).css("height",b)}else if(s.length>0){var b=n(s,"css");s.attr("wmode","opaque").wrap("
"),s.css("width",a).css("height",b),s.parent().css("width",a).css("height",b),s.parent().parent().is("object")&&s.parent().parent().css("width",a).css("height",b)}else if(r.length>0&&r.not(":has(embed)"))if(e.support.htmlSerialize){var b=n(r,"attr");r.css("width",a).css("height",b).attr("width",a).attr("height",b)}else{r.replaceWith(r.attr("altHtml"));var s=o.find("embed"),b=n(s,"css");s.css("width",a).css("height",b),s.attr("wmode","opaque")}o.removeClass("loading")}function o(){var t=300,i=e("ol.notes"),n=e("#notes-toggle");n.toggle(function(){i.slideUp(1.5*t),e(this).removeClass("up"),e(this).find(".label").text("Show")},function(){i.slideDown(1.5*t),e(this).addClass("up"),e(this).find(".label").text("Hide")}),collapseNotes&&-1==window.location.href.indexOf("#notes")&&n.click(),e("#content").find(".meta-list").find("li.notes a").click(function(t){t.preventDefault(),e("#notes").find("ol.notes").is(":not(:visible)")&&n.click()})}function s(){var t=e("#followed"),i=t.find("#followed-list"),n=i.children("li").size();if(t.find("h2").append(" ("+n+")"),5*followedRows>=n)return!0;var a=t.find("#followed-wrap"),o=followedRows*i.find("li").eq(0).outerHeight(!0),s=a.outerHeight(!0),r=5*followedRows;a.css("height",o+"px"),e(i).find("li span").each(function(){var t=e(this),i=t.innerWidth();t.css({marginLeft:-(i/2),display:"none"})}).parent().hide().slice(0,r).show(),e("
",{"class":"show-more-followed",href:"#",html:"Show All ↓"}).appendTo(t).toggle(function(){a.css({height:s+"px"}),e(i).children("li").fadeIn(100),e(this).html("Show Less ↑")},function(){a.css({height:o+"px"}),e(i).children("li").hide().slice(0,r).show(),e(this).html("Show All ↓")})}function r(){var t="?",i=e("li.comments a");i.each(function(i){e(this).attr("href").indexOf("#disqus_thread")>=0&&(t+="url"+i+"="+encodeURIComponent(this.href)+"&")}),e.getScript("http://disqus.com/forums/"+disqusShortname+"/get_num_replies.js"+t,function(){i.each(function(){e(this).prepend('').parent().removeClass("hidden")})})}function d(){twitterJSLoading=!0,e.ajax({url:"http://platform.twitter.com/widgets.js",dataType:"script",cache:!0,success:function(){twitterJSLoading=!1}})}function c(){numTweets=numTweets>4?4:numTweets,e("#twitter .loading-text").replaceWith('